import request from '../utils/request';
import qs from 'qs';
let host = "http://127.0.0.1:8000";

export async function login(params) {
    return request(host + '/rest/login/', {
        method: 'post',
        body: qs.stringify(params),
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
    });
}
